


const mongoose = require('mongoose');
const {mongodb}=require('./config/index.js');


const url = `mongodb://${mongodb.host}:27017/${mongodb.name}`;
// const mySchema = require('../Schema/userinfo.js')
mongoose.connect(url, { useNewUrlParser: true, useUnifiedTopology: true })


module.exports=mongoose